package spring_toby.vol1.ch1.c151.springbook.user.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DConnectionMaker implements ConnectionMaker 
{
	public Connection makeConnection() throws ClassNotFoundException, SQLException 
	{
		Class.forName("com.mysql.jdbc.Driver");
		Connection c = DriverManager.getConnection("jdbc:mysql://localhost/spring_toby?characterEncoding=UTF-8", "spring", "book");
		
		return c;
	}
}
